package cn.walls1717.wallsmall.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.walls1717.wallsmall.common.utils.PageUtils;
import cn.walls1717.wallsmall.coupon.entity.SeckillSkuRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 秒杀活动商品关联
 *
 * @author walls1717
 * @email walls1717@163.com
 * @date 2022-10-21 13:09:27
 */
public interface SeckillSkuRelationService extends IService<SeckillSkuRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据秒杀场次id(promotionSessionId)查询所有秒杀场次与秒杀商品的关联关系
     *
     * @param promotionSessionId promotionSessionId
     * @return 秒杀场次与秒杀商品的关联关系
     */
    List<SeckillSkuRelationEntity> listByPromotionSessionId(Long promotionSessionId);
}

